<?php

namespace common\models\projectrepo;

use Yii;

/**
 * This is the model class for table "project_repo".
 *
 * @property integer $id
 * @property string $number
 * @property integer $category
 * @property string $name
 * @property string $firstname
 * @property string $secondname
 * @property string $repo_unit
 * @property string $contacts
 * @property string $telephone
 * @property string $mobile_phone
 * @property string $email
 * @property integer $application_date
 * @property string $fill_instructions
 * @property string $leader_name
 * @property string $leader_mobile
 * @property string $leader_email
 * @property string $leader_profession
 * @property string $contact_name
 * @property string $contact_mobile
 * @property string $contact_email
 * @property string $contact_address
 * @property string $contact_fax
 * @property string $contact_telephone
 * @property string $coop_name
 * @property string $coop_leader
 * @property string $coop_telephone
 * @property string $repo_unitname
 * @property string $repo_supervisor
 * @property string $repo_leadername
 * @property string $repo_property
 * @property string $repo_profile
 * @property string $background
 * @property string $main_contents
 * @property string $existing_basis
 * @property string $expected_results
 * @property string $schedule_target
 * @property integer $schedule_starttime
 * @property integer $schedule_endtime
 * @property string $mainpart_name
 * @property integer $mainpart_age
 * @property string $mainpart_profession
 * @property string $mainpart_unit
 * @property string $mainpart_mainwork
 * @property string $mainpart_note
 * @property integer $total_budget
 * @property integer $apply_budget
 * @property integer $own_budget
 * @property integer $nation_budget
 * @property integer $unit_budget
 * @property integer $other_budget
 * @property string $paid_content
 * @property string $paid_money
 * @property string $paid_note
 * @property string $calculation_basis
 * @property string $repo_option
 */
class ProjectRepo extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'project_repo';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['number', 'category', 'name', 'firstname', 'secondname', 'repo_unit', 'contacts', 'telephone', 'mobile_phone', 'email', 'application_date', 'fill_instructions', 'leader_name', 'leader_mobile', 'leader_email', 'leader_profession', 'contact_name', 'contact_mobile', 'contact_email', 'contact_address', 'contact_fax', 'contact_telephone', 'coop_name', 'coop_leader', 'coop_telephone', 'repo_unitname', 'repo_supervisor', 'repo_leadername', 'repo_property', 'repo_profile', 'background', 'main_contents', 'existing_basis', 'expected_results', 'schedule_target', 'schedule_starttime', 'schedule_endtime', 'mainpart_name', 'mainpart_age', 'mainpart_profession', 'mainpart_unit', 'mainpart_mainwork', 'mainpart_note', 'total_budget', 'apply_budget', 'own_budget', 'nation_budget', 'unit_budget', 'other_budget', 'paid_content', 'paid_money', 'paid_note', 'calculation_basis', 'repo_option'], 'required'],
            [['category', 'application_date', 'total_budget', 'apply_budget', 'own_budget', 'nation_budget', 'unit_budget', 'other_budget'], 'integer'],
            [['number', 'name', 'firstname', 'secondname', 'repo_unit', 'contacts', 'telephone', 'mobile_phone', 'email', 'fill_instructions', 'leader_name', 'leader_mobile', 'leader_email', 'leader_profession', 'contact_name', 'contact_mobile', 'contact_email', 'contact_address', 'contact_fax', 'contact_telephone', 'coop_name', 'coop_leader', 'coop_telephone', 'repo_unitname', 'repo_supervisor', 'repo_leadername', 'repo_property', 'repo_profile', 'background', 'main_contents', 'existing_basis', 'expected_results', 'schedule_target', 'mainpart_name', 'mainpart_profession', 'mainpart_unit', 'mainpart_mainwork', 'mainpart_note', 'paid_content', 'paid_note', 'calculation_basis', 'repo_option', 'paid_money', 'mainpart_age', 'schedule_starttime', 'schedule_endtime'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('app', 'ID'),
            'number' => Yii::t('app', '项目编号'),
            'category' => Yii::t('app', '项目类别'),
            'name' => Yii::t('app', '项目名称'),
            'firstname' => Yii::t('app', '一级标题'),
            'secondname' => Yii::t('app', '二级标题'),
            'repo_unit' => Yii::t('app', '申报单位'),
            'contacts' => Yii::t('app', '联系人'),
            'telephone' => Yii::t('app', '联系电话'),
            'mobile_phone' => Yii::t('app', '手机'),
            'email' => Yii::t('app', '电子邮箱'),
            'application_date' => Yii::t('app', '申请日期'),
            'fill_instructions' => Yii::t('app', '填报说明'),
            'leader_name' => Yii::t('app', '负责人姓名'),
            'leader_mobile' => Yii::t('app', '负责人手机'),
            'leader_email' => Yii::t('app', '负责人邮箱'),
            'leader_profession' => Yii::t('app', '负责人工作单位及职称'),
            'contact_name' => Yii::t('app', '联系人姓名'),
            'contact_mobile' => Yii::t('app', '联系人手机'),
            'contact_email' => Yii::t('app', '联系人邮箱'),
            'contact_address' => Yii::t('app', '联系人通讯地址'),
            'contact_fax' => Yii::t('app', '联系人传真'),
            'contact_telephone' => Yii::t('app', '联系人单位电话'),
            'coop_name' => Yii::t('app', '合作单位名称'),
            'coop_leader' => Yii::t('app', '合作单位负责人'),
            'coop_telephone' => Yii::t('app', '合作单位联系电话'),
            'repo_unitname' => Yii::t('app', '申报单位名称'),
            'repo_supervisor' => Yii::t('app', '申报单位上级主管单位'),
            'repo_leadername' => Yii::t('app', '申报单位负责人姓名'),
            'repo_property' => Yii::t('app', '申报单位单位性质'),
            'repo_profile' => Yii::t('app', '申报单位单位简介'),
            'background' => Yii::t('app', '立项背景及依据（研究目的、意义、国内外研究现状、目标，需标明主要参考文献）'),
            'main_contents' => Yii::t('app', '项目主要内容和方案'),
            'existing_basis' => Yii::t('app', '现有工作基础（有关工作积累、取得的学术奖励、与课题有关的论著、研究力量等）'),
            'expected_results' => Yii::t('app', '项目预期成果和效益（项目完成后的创新点和成果、年度考核指标）'),
            'schedule_target' => Yii::t('app', '进度计划目标内容'),
            'schedule_starttime' => Yii::t('app', '进度计划开始时间'),
            'schedule_endtime' => Yii::t('app', '进度计划结束时间'),
            'mainpart_name' => Yii::t('app', '主要参加人员姓名'),
            'mainpart_age' => Yii::t('app', '主要参加人员年龄'),
            'mainpart_profession' => Yii::t('app', '主要参加人员职务职称'),
            'mainpart_unit' => Yii::t('app', '主要参加人员工作单位'),
            'mainpart_mainwork' => Yii::t('app', '主要参加人员主要工作'),
            'mainpart_note' => Yii::t('app', '主要参加人员备注'),
            'total_budget' => Yii::t('app', '经费总预算'),
            'apply_budget' => Yii::t('app', '申请经费'),
            'own_budget' => Yii::t('app', '自有经费'),
            'nation_budget' => Yii::t('app', '国家其他拨款'),
            'unit_budget' => Yii::t('app', '单位自筹'),
            'other_budget' => Yii::t('app', '其他'),
            'paid_content' => Yii::t('app', '经费支出内容'),
            'paid_money' => Yii::t('app', '经费支出金额'),
            'paid_note' => Yii::t('app', '经费支出备注'),
            'calculation_basis' => Yii::t('app', '测算依据'),
            'repo_option' => Yii::t('app', '申报单位意见'),
        ];
    }
}
